All Questions
Tagged with interpreterhaskell
16 questions
2votes
1answer
344views
Meta-circular interpreter for lambda calculus in Haskell
For learning purpose, I've written a simple lambda calculus interpreter (plus 'Add'). I would like it to be the cleanest and most idiomatic possible. Bonus question: how would you use ...
7votes
1answer
287views
A simple brainf*** interpreter in Haskell
I am very new to Haskell and come from languages like C++, although I do have some experience with Scheme. Here, I wrote a simple brainf*** interpreter, which so far is my largest project. I followed ...
6votes
1answer
120views
TinCan (Esolang) Interpreter in Haskell
Haskell newbie here. Wanted to improve my skills by re-implementing an esolang I designed back in 2011 called TinCan. If there are things that are perhaps badly coded or unclear things due to my ...
3votes
1answer
256views
AST-based Brainfuck interpreter in Haskell
Since implementing my Interactive Brainfuck interpreter in Haskell I figured that it would be a good idea to build upon an Abstract Syntax Tree. I have also decided to drop replacing the ...
15votes
2answers
350views
Interactive Brainfuck interpreter in Haskell
Last week I started learning Haskell, and since I have some experience with Brainfuck already, I decided it would be a great idea to implement an interactive Brainfuck interpreter in Haskell. I'll ...
2votes
1answer
161views
Haskell Brainf*ck interpreter: runtime error handling
I have designed a Brainf*ck interpreter in Haskell. I would appreciate the code review, especially any tips related to error handling (e.g. parsing errors, runtime errors, etc.). ...
6votes
1answer
135views
Brain Flak implementation in Haskell
I'm a beginner to Haskell and functional programming as a whole and as a first project I've written a Brain-Flak implementation in Haskell. I wanted to get some feedback on this implementation ...
6votes
1answer
123views
Yet another BrainF*** Interpretter in Haskell
I wrote a BrainF*** interpretter in Haskell. A general review would be helpful and especially, a suggestion with a better way to deal with the IO (IO Memory, IO ()) ...
3votes
0answers
1kviews
Lambda calculus interpreter in Haskell
This code is a representation of lambda calculus using an AST instead of text. ...
47votes
1answer
3kviews
Charmander Brainfuck interpreter in Haskell
I just started learning Haskell and this is my first big project (ie not factorials, fibonacci or graphers). This is kind of a gift for somebody so the language is a bit different. The program works, ...
5votes
2answers
220views
Another Brainfuck interpreter in Haskell
I came up with the following Brainfuck interpreter in Haskell after thinking about how to represent the program and the memory functionally using zippers to represent current location. This works ...
8votes
2answers
619views
Brainfuck interpreter in Haskell
Okay, so I just started learning Haskell around a week ago and this is my first real program that I worked on all of yesterday with a lot of help from IRC. I know that using indicies and arrays is not ...
5votes
1answer
320views
Simple evaluator of Scheme-like expressions in Haskell
This is my first nontrivial Haskell program: ...
7votes
1answer
122views
Primitive stack-based code interpreter
I've written an interpreter for a simple assembly-like language and it's performing slower than I would like. It's split into 3 files: the Parser that converts the source to a vector of ints, the VM ...
7votes
1answer
755views
A stack-based language interpreter in Haskell
Here is a little interpreter I wrote for a simple stack-based language. It is my first attempt at a complete Haskell program, beyond glorified calculator use. I'd like very much to get an expert's ...